# from api.ihrm_login import IHRMAPI
#
#
# def get_token():
#     data = {'mobile': '13800000002', 'password': '123456'}
#     r = IHRMAPI.login(data)
#     token = r.json()['data']
#     return token
# if __name__ == '__main__':
#     print(get_token())




# from api.ihrm_login import IHRMAPI
# def get_token():
#     data= {'mobile': '13800000002', 'password': '123456'}
#     r= IHRMAPI.login(data)
#     token = r.json()['data']
#     return token
#
# if __name__ == '__main__':
#     print(get_token())
# # ---------------------------------------------------------------------
# from api.ihrm_login import IHRMAPI
# def get_token():
#     data = {'mobile':'13800000002','password':'123456'}
#     token = IHRMAPI.login(data).json()['data']
#     return token



# --------------------------------------------------------------------
#
from api.ihrm_login import IHRMAPI


def get_token():
    data= {'mobile': '13800000002', 'password': '123456'}
    r = IHRMAPI.login(data)
    token = r.json()['data']
    return token



if __name__ == '__main__':
    print(get_token())
